using Microsoft.EntityFrameworkCore;
using NetCourse.Framework.Database;
using Xmu.Stores.Models;

namespace ExamRoomAllocationManagement.Dao
{
    public class Repositories : IScopedDependency
    {
        public NetContext DbContex { get; set; }
        public Repositories(NetContext dbContex)
        {
            DbContex = dbContex;
        }
        public DbSet<Exam> Exams => DbContex.Set<Exam>();
        public DbSet<ExamRoom> ExamRooms => DbContex.Set<ExamRoom>();
        public DbSet<ExamRoomAssociation> ExamRoomAssociations => DbContex.Set<ExamRoomAssociation>();

        public DbSet<ExamRoomAllocation> ExamRoomAllocations => DbContex.Set<ExamRoomAllocation>();
        public DbSet<Registration> Registrations => DbContex.Set<Registration>();
    }
}